package com.example.jdbcdemo.mapper;


import com.example.jdbcdemo.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface UserMapper {
    List<User> queryUserList();//返回用户列表

    User queryUserById(int id);//通过id查询

    User queryUserByname(String name);//通过用户名查询

    int addUser(User user);//增

    int updateUser(User user);//改

    int deleteUser(int id);//删
}
